home *** CD-ROM | disk | FTP | other *** search
/ Archive Magazine CD 1995 / Archive Magazine CD 1995.iso / text / hints / volume_01 / issue_09 < prev    next >
Text File  |  1995-02-16  |  10KB  |  245 lines

  1. •   View B3.0. Following on from the hint about View B3.0, John Phelan
  2. writes th•   “More articles about the basics, please”, said a number of
  3. folk at the Micro User Show. WeÕve had something on using ADFS and are
  4. starting assembler for beginners but can anyone say specifically what
  5. they want information on and can anyone offer to write any “basic”
  6. articles, please? In particularÉ
  7. 1.09
  8. •   Article on ARMBE. We really do need someone to write a very
  9. practical guide to using the ARM BASIC Editor. For example, IÕve only
  10. just realised that <insert> toggles between insert and over-write mode
  11. and so you donÕt have to go through the preferences menu. I suspect a
  12. lot of people are not using ARMBE simply because they are familiar with
  13. BASICÕs own line editor and havenÕt got time to learn ARMBE even though
  14. it would save them time in the long run. Please write to us if you would
  15. like to have a go at this. Thanks.
  16. 1.09
  17. •   BASIC V utility library. If you have worked out some neat utilities
  18. like the one in Hints & Tips about aligning decimal points, why not send
  19. them in to us. Clifford Hoggarth has offered to edit the section, so
  20. either send your contributions to us or direct to him at 20 Pinfold
  21. Drive, Eccleston Mere, St Helens, WA10 5BT.
  22. 1.09
  23. •   Education articles. IÕm getting requests for articles relevant to
  24. education, but no-one is offering such articles. Can anyone help?!
  25. 1.09
  26. •   Hard Disc users. One reader, who has a 440 on order, wants to know
  27. if there are any doÕs and donÕtÕs with a hard disc. Are there any hard-
  28. disc users who want to comment?
  29. 1.09
  30. •   View B3.0. Following on from the hint about View B3.0, John Phelan
  31. writes that there is still a problem with the pound key. On the
  32. Archimedes, this key returns ASCII 163. Is this redefinable?
  33. 1.09
  34. •   Calculating ¹ and e. Brian Cowan asks if anyone knows the way that
  35. pi and/or e may be calculated digit by digit on a computer. Presum-ably
  36. they must be all integer algorithms(?)
  37. 1.09
  38. •   Taxan KP-810 on ArcWriter. Has anyone worked out how to get a
  39. printer driver working for this combination? Drop a line to E. Clinks
  40. cales, 68 Wyvis Drive, Nairn, IV12 4TP.
  41. 1.09
  42. •   Video-titling. Is there any software, says M Davies of Cardigan, for
  43. video-titling? Wild Vision do the hardware for Genlock and Video
  44. Overlay, but where is the software?
  45. 1.09
  46. Also, he asks, is there any software, preferably ROM based, to give NLQ
  47. print on his Epson RX80 and also desktop publishing?
  48. 1.09
  49. Help Answers
  50. 1.09
  51. •   Label printer for cassette tapesÉ Try the June issue of Micro User,
  52. page 39.
  53. 1.09
  54.  
  55. 1.09
  56. •   View B3.0. In order to get View B3.0 working properly under the 6502
  57. emulator, as well as poking the three bytes at &A8A1 to &EA you have to
  58. poke &80C2 — 4 to &EA otherwise, the emulator tries to run it as a
  59. second processor ROM image — without any success. With this patch, the
  60. address space from &B328 to &BFFF is effectively free for patching.
  61. Perhaps some enterprising programmer could use this space for extra
  62. routines — e.g. a resident printer-driver.
  63. 1.09
  64. •   Special characters. If you want to generate special characters on-
  65. screen, try pressing <ctrl-shift-alt> and then one of the ordinary keys
  66. and you will find that you can get all sorts of alternative characters
  67. such as © and ¨ and the half, quarter and three-quarter signs (which I
  68. havenÕt even got on the Apple Mac!). What is more, if you are using Arc-
  69. Writer, it will actually print some of the symbols, such as the
  70. fractions, on the printer!
  71. 1.09
  72. •   PSU for external 5.25“ drives. If you have an external 5.25” disc
  73. drive that does not have its own power supply, you can take the power
  74. from the power supply for the hard disc but you will need a special
  75. cable and connector. Those who have bought interfaces from Dudley Micro
  76. Supplies might be able to get help from them. (Or try the ArcDFS
  77. interface mentioned in Hardware & Software Available section.)
  78. 1.09
  79. •   Aligning decimal points. If you are trying to print out various
  80. figures and want the decimal points to line up above one another, you
  81. can use the “fixed format”. (See the explanation of the @% variable
  82. under the section in the User Guide about the PRINT command.) However,
  83. the fixed format prints out trailing zeros, e.g. it prints 234.0000
  84. instead of 234.
  85. 1.09
  86. The bad news: One reader wanted to avoid this and so was trying to write
  87. a BASIC routine to do the aligning and discovered some nasties (presum
  88. ably due to rounding errors) that gave the value of LOG100 as 2 but
  89. INT(LOG100) as 1! Also he found that LEN(STR$3.3) was given as 3, but
  90. LEN(STR$4.3) was given as 11!
  91. 1.09
  92. The good news: You can do a STR$, use INSTR to find the position of the
  93. decimal point and then use PRINT TAB( to position it correctly as in the
  94. following example. (Thanks, APL!)
  95. 1.09
  96.  10 REM >$.AlignDP
  97. 1.09
  98.  20
  99. 1.09
  100.  30 REM ***************************
  101. 1.09
  102.  40 REM * Aligning your decimals  *
  103. 1.09
  104.  50 REM *  by Adrian Philip Look  *
  105. 1.09
  106.  60 REM *    28th April 1988      *
  107. 1.09
  108.  70 REM ***************************
  109. 1.09
  110.  80
  111. 1.09
  112.  90 REPEAT
  113. 1.09
  114. 100   random=RND(10000)-RND(1)*(RND
  115. 1.09
  116. (1)<.7)
  117. 1.09
  118. 110   PROCalign(20,random)
  119. 1.09
  120. 120 UNTIL FALSE
  121. 1.09
  122. 130 END
  123. 1.09
  124. 140
  125. 1.09
  126. 150 DEFPROCalign(x,number)
  127. 1.09
  128. :REM x = position of DP
  129. 1.09
  130. 160 number$=STR$(number)
  131. 1.09
  132. 170 dot=INSTR(number$,“.”)
  133. 1.09
  134. 180 IF dot=0 dot=LEN(number$)+1
  135. 1.09
  136. :REM i.e. no DP
  137. 1.09
  138. 190 IF dot=1 dot=0:REM leads with DP
  139. 1.09
  140. 200 PRINT TAB(x-dot);number
  141. 1.09
  142. :REM beware of (x-dot)<0
  143. 1.09
  144. 210 ENDPROC
  145. 1.09
  146. STOP PRESS. The original enquirer about this, Peter Trigg, has just come
  147. back with:
  148. 1.09
  149. DEFPROCalign(x%,number)
  150. 1.09
  151. :REM x% = position of DP
  152. 1.09
  153. LOCAL length%
  154. 1.09
  155. length%=LEN(STR$(INT(number)))
  156. 1.09
  157. PRINT TAB(x%-length%);number
  158. 1.09
  159. ENDPROC
  160. 1.09
  161. This is somewhat neater and it seems to work OK. (This just emphasises
  162. the need for sharing ideas — which is why we are setting up our “BASIC
  163. utilities” section — see Help!!! section.)
  164. 1.09
  165. •   Music Editor. If you have a number of tunes that were prepared using
  166. the Music Editor on the 0.2 or 0.3 Welcome discs. You will probably find
  167. that all the voices are wrong — usually that the main tune was being
  168. played on the percussion! The reason is that the Music Editor refers to
  169. the voices by number only, so if the modules are in a different order,
  170. the voices are likewise in a different order. It is however possible to
  171. change the order of the modules by *RMKILLing the one which is higher in
  172. the *ROMMODULES list then doing a *RMTIDY and then *RMREINITing the
  173. module which you had just killed.
  174. 1.09
  175. •   Beware &36D!  Some BBC software (Apollo Mission for example) pokes
  176. !877=0 (or !&36D=0). If you transfer this to the Archimedes you will
  177. find that the system locks up and neither <ctrl-break> nor <reset> has
  178. any effect. Even switching off is ineffective. The only way out is an
  179. <R>-power-up. (Do it twice to restore the correct monitor-type setting.)
  180. 1.09
  181. •   File copying on a single drive. Are you having difficulty copying
  182. files from one disk to another using just one disk drive? Is it that
  183. when using the *COPY command with the Prompt option, the system prompts
  184. for insertion of the destination disk but never recognises it? If so, 
  185. issue the command *NODIR first. The system will then read the disk
  186. directory every time it attempts to access a disk rather than storing
  187. the directory in memory so that disks no longer need *MOUNTing. It is
  188. possible to make the change permanent by doing *Configure NODIR.
  189. 1.09
  190. •   Boot files that work from desktop or with <shift-break> — set *OPT
  191. 4,2 (Run) and create a BASIC program called !BOOT. You can then <shift-
  192. break> if configured as language 3 or 4 (desktop or BASIC) or double
  193. click the !boot icon from desktop.
  194. 1.09
  195. If necessary the !BOOT file can contain a line such as: 10*EXEC !BOOT1
  196. 1.09
  197. !BOOT1 contains tasks such as loading modules that need to be done from
  198. supervisor mode.
  199. 1.09
  200. •   To run Master software, use *Alphabet Master and *Keyboard Master.
  201. 1.09
  202. •   *TypeFile again. After the ideas given last month, I knew there
  203. should be an easier wayÉ Clifford Hoggarth has come up with:
  204. 1.09
  205. *Alias$TypeFile Echo ||B|M Type %0|M Echo ||C|M
  206. 1.09
  207. The point is that on first interpretation, || is turned into | so that
  208. it become Echo |B which gives the ASCII 2 (ctrl-B) to turn on the
  209. printer and Echo |C to do the reverse.
  210. 1.09
  211. •   System Delta Plus — The section in the manual on printer control
  212. codes is not very clear. The following points may make it clearer: (1)
  213. Clicking on <menu> on the printer control icon brings up a sub-menu
  214. giving options for Bold, Compressed or Reset. (2) To select multiple
  215. escape sequences, click <select> on the printer control icon, select the
  216. Escape icon and enter the first code in the sequence, then press
  217. <return>, enter the second code and again press <return>. Repeat this if
  218. necessary and click on the OK icon when you have finished. E.g. to get
  219. NLQ on an Epson , you want ESC120,1. So use: <select> Escape icon, type
  220. 120, press <return>, type 1, press <return>, <select> OK icon.
  221. 1.09
  222. One limitation of the System Delta Plus package, as it stands, is that
  223. you can only create four numeric total fields when producing a “List”.
  224. The solution, according to Minerva Systems will be to purchase their
  225. “Reporter” software — when it becomes available!
  226. 1.09
  227. •   Taxan Kaga printer (or the Canon equiv-alent) — there is a fairly
  228. simple way of being able to switch the auto-line feed on and off, to
  229. avoid problems with software that may or may not require the printer to
  230. auto-line feed.
  231. 1.09
  232. All you do is to place a switch between two pins of the printer
  233. connector. The pins to connect are pin 14 (auto-line feed) and any GND
  234. line. When they are connected an auto-line is not performed.
  235. 1.09
  236. •   Ambiguous *-commands. If you have two modules loaded into the
  237. Archimedes that use the same *-command name, you can call the command
  238. required by: *<module name>: <command> <....> So, for example, if you
  239. had two modules, ÔUtilityÕ and ÔToolkitÕ both of which have a CATALL
  240. command, you can use either *Utility:CATALL or *Toolkit:CATALL to
  241. differentiate between them.
  242. 1.09
  243.  
  244. 1.09
  245.